projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df3dea9
)
If we don't have a name on the way in, give it a shortname.
author
robertl
<robertl>
Wed, 19 Jan 2005 03:19:56 +0000
(
03:19
+0000)
committer
robertl
<robertl>
Wed, 19 Jan 2005 03:19:56 +0000
(
03:19
+0000)
route.c
patch
|
blob
|
history
diff --git
a/route.c
b/route.c
index 0f07330877182e90ba8e7722e1a1df9e1668917f..4f3b8242801460673a06adb12c5653ab8238cd21 100644
(file)
--- a/
route.c
+++ b/
route.c
@@
-100,6
+100,11
@@
route_add_wpt(route_head *rte, waypoint *wpt)
ENQUEUE_TAIL(&rte->waypoint_list, &wpt->Q);
rte->rte_waypt_ct++; /* waypoints in this route */
rte_waypts++; /* total waypoints in all routes */
+ if (wpt->shortname == NULL) {
+ char tmpnam[10];
+ snprintf(tmpnam, sizeof(tmpnam), "RPT%03d",rte_waypts);
+ wpt->shortname = xstrdup(tmpnam);
+ }
}
void